<?php $this->load->view("common/page_header");?>
<div id="body_main">	
	<div class="login_header">
		<img class="logo" src="/img/logo2.png" />
		<div class="title">转让行动卡</div>
		<div class="action"><a href="/user/show">返回行动中心</a></div>
		<div class="clear"></div>
	</div>
	<div id="buy_body">
		<div class="arrow_up">
			<em>◆</em>
			<span>◆</span>
		</div>
		<div class="left_side_bar">
			<ul class="margin_left15">
				<li><a href="/buy">支付宝购买</a></li>
				<li><a href="/buy/by_remittance">柜台转账购买<span>（银行转账邮局汇款）</span></a></li>
				<li class="current"><a href="/buy/transfer">转让行动卡</a></li>
			</ul>
		</div>
		<div class="main_content">
			<form method="POST" action="/buy/transfer">
				<?php if (!empty($error_message)) { ?>
				<div class="form_error margin_bottom10" style="display:block;"><?php echo $error_message; ?></div>
				<?php } ?>
				<div class="form_row">
					<label class="input_label"><span class="red">* </span>转让给：</label>
					<input class="input_text" class="text" style="width:200px" name="nickname"/>
				</div>
				<div class="form_row">
					<label class="input_label"><span class="red">* </span>转让：</label>
					<input class="input_text" class="text" name="count" style="width:50px;"/>&nbsp;张<span class="grey">
					（您最多还可以转让<span class="left_card_number"><?php echo $card_count;?></span>张）</span>
				</div>
				<div class="form_action" style="margin-left:85px">
					<input type="submit" class="input_button" value="转让"/>
				</div>
			</form>
			<div class="notice_tips" style="margin-left:85px">成功转让<span class="orange"><?php echo $count;?></span>张行动卡给<a class="orange" href="/user/show?user_id=<?php  echo $receiver['id']?>"><?php echo $receiver['nickname']?></a>,最多还可以再转让<span class="orange"><?php echo $card_count;?></span>张</div>
		</div>
		<div class="clear"></div>
	</div>
</div>
<?php $this->load->view("common/footer");?>		
<?php $this->load->view("common/page_footer");?>
<script type="text/javascript">
$(document).ready(function(){
	$("#register_button").colorbox({iframe:true, innerWidth:556, innerHeight:320, close:'关闭'});
	$("#login_button").colorbox({iframe:true, innerWidth:390, innerHeight:180, close:'关闭'});
});	
</script>